use serde::{Deserialize, Serialize};

#[derive(Serialize,Deserialize)]
struct App<T>
where
    T: Serialize + ?Sized,
{
    name: i32,
    data: T,
}
#[test]
fn test_de() {
    let app = App {
        name: 1,
        data: serde_json::json!({
            "name": "hello",
            "age": 10,
        }),
    };
    println!("{}", serde_json::to_string_pretty(&app).unwrap());
}
